export const ArticleTableColumnsData = [
  {
    width: 60,
    label: "序号",
    prop: "index",
    align: "center",
    customSlot: "index",
    showOverflowTooltip: true,
  },
  {
    label: "文章标题",
    prop: "articleTitle",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "举报理由",
    prop: "feedbackTypeText",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "举报描述",
    prop: "content",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "附件",
    prop: "files",
    align: "center",
    showOverflowTooltip: true,
    customSlot: "files",
  },
  {
    label: "状态",
    prop: "status",
    align: "center",
    showOverflowTooltip: true,
    customSlot: "status",
  },
  {
    label: "创建时间",
    prop: "createTime",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "处理备注",
    prop: "reason",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "操作",
    prop: "action",
    width: 150,
    align: "center",
    fixed: "right",
    showOverflowTooltip: false,
    customSlot: "action",
  },
];

export const CommentTableColumnsData = [
  {
    width: 60,
    label: "序号",
    prop: "index",
    align: "center",
    customSlot: "index",
    showOverflowTooltip: true,
  },
  {
    label: "评论内容",
    prop: "articleCommentContent",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "举报理由",
    prop: "feedbackTypeText",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "举报描述",
    prop: "content",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "附件",
    prop: "files",
    align: "center",
    showOverflowTooltip: true,
    customSlot: "files",
  },
  {
    label: "状态",
    prop: "status",
    align: "center",
    showOverflowTooltip: true,
    customSlot: "status",
  },
  {
    label: "创建时间",
    prop: "createTime",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "处理备注",
    prop: "reason",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "操作",
    prop: "action",
    width: 150,
    align: "center",
    fixed: "right",
    showOverflowTooltip: false,
    customSlot: "action",
  },
];

export const STATUS_LIST_OBJECT = {
  unprocessed: {
    label: "未处理",
    value: 0,
    type: "warning",
  },
  processed: {
    label: "处理完成",
    value: 1,
    type: "success",
  },
  failed: {
    label: "处理失败",
    value: 2,
    type: "danger",
  },
  notProcessed: {
    label: "暂不处理",
    value: 3,
    type: "default",
  },
};

const KEY_STATUS_OBJECT = {};
Object.keys(STATUS_LIST_OBJECT).forEach((key) => {
  KEY_STATUS_OBJECT[STATUS_LIST_OBJECT[key].value] = STATUS_LIST_OBJECT[key];
});
export { KEY_STATUS_OBJECT };

// 举报源 1文章 2评论
export const SOURCE_LIST_OBJECT = {
  article: {
    label: "文章",
    value: 1,
  },
  comment: {
    label: "评论",
    value: 2,
  },
};
